Use winmm. dll to control sound playback and winmm. dll sound playback
This section describes how to use winmm. dll to play a sound.
First, import two functions.
///
Sample Code
Int error = mciSendString ("open C :\\ Users \ Ange
C # Call the C # sample code below winmm. DLL to play the audio file # demonstrate how to use the platform call service on Windows platform to play the waveform sound file.ExampleThis code example uses dllimport to import the playsound method entry point of winmm. dll as form1 playsound. This example has a simple windo
Using system;
Using system. text;
Using system. runtime. interopservices;
Namespace music
{
/** //
///
///
Public class audio
{
[Dllimport ("winmm. dll")]
Private Static extern int mcisendstring
(
String lpstrcommand,
String lpstrreturnstring,
Int ureturnlength,
Int hwndcallback
);
[Dllimport ("kernel32.dll", charset = charset. Auto)]
Public
Mcisendstring
Is used to play multimedia files
API
Command, which can be played
MPEG, Avi, WAV, MP3,
And so on.
This function has four parameters: The first parameter is the command string to be sent. The string structure is :[ Command ] [ Device alias ] [ Command Parameters ]. Second parameter: the buffer zone of the returned information , Is a string variable with a specified size. . Third parameter: buffer size , Is the length of the character variable . Fourth par
Play music with winmmPosted on chengking reading (110) Comments (0) edit the category of the favorites:. Net Method in using DLL, C # column(1). DescriptionFor a music playing class, you can use copy directly.It can be used for self-compiled games and other places where music needs to be played. You only need to give it a file name.OK. For details, refer to the following code.(2). StepsUsing system;// Using system. drawing;Using system. collections;Us
,/* alias is a predefined ID */Snd_filename = 0x00020000,/* name is file name */Snd_resource = 0x00040004/* Name Is Resource Name or atom */}
[Dllimport ("winmm")]Public static extern bool playsound (string szsound, intptr hmod, playsoundflags flags );}
Public class sound{Public static void play (string strfilename){// Helpers. playsound (strfilename, intptr. Zero, helpers. playsoundflags. snd_filename | helpers. playsoundflags. snd_async );Switch (s
Hbinject.exe, hbmhly. dll, sys07003.dll, zsqf. dll, ytfa. dll, ytfb. dll, ytfc. dll, etc.
Original endurerVersion 1st
Yesterday, a friend said that he opened a flash file on the Internet. The Flash Player encountered an error and
This article is about how to invoke C (c + +)-written DLLs in a C # environment.
"Reprint marked the source."
First, the preferred creation of a C DLL project, production DLL files used for standby, steps are as follows:
1, VS2010 create C + + Project Select Win32 Application, the name is Createcdll, in the application settings interface to select the DLL, the fo
Original Address:MinGW QTSun 1 EastProblems and workarounds for compiling QT source code using MinGW without using the QT SDK:Configure-fast-release-no-exceptions-no-rtti-no-stl-no-qt3support-no-opengl-no-multimedia-no-webkit-no-script- No-scripttools-nomake tools-nomake examples-nomake demos-nomake docs-nomake translations-platform win32-g++The TDM version of MinGW GCC is highly recommended, compared to the official MinGW slow and obscure, the TDM installation process is simple, clear, and fast
Ninsys74.sys, b674a2d4. EXE, 42ae09e4. dll, msavp. dll, avpdj. dll, avpwl. dll, etc.
EndurerOriginal2007-10-121Version
At noon yesterday, I helped two netizens clean up computer viruses.
Recall one of them first.
The netizen's computer is installed with rising 2007 anti-virus software, but it is an expired download ver
/imports | more// Read the imported items (DLL files and functions), parameters | more split screen displayMicrosoft (r) COFF/PE dumper version 7.10.3077Copyright (c) Microsoft Corporation. All rights reserved.
Dump of file myatl. dll
File Type: DLL
Section contains the following imports:
D3d9. dll1024ff5c import Address Table1024f7cc Import Name table0 time date
First, call the dll and register it through the command: regsvr32 F:/CJZFProject/CJZFMain/bin/Debug/PayDll. DLL
If you call the standard DLL Code as follows:
Statement:
[DllImport ("PayDll. dll", CharSet = CharSet. Auto)]Static extern int OpenComm (int a, int B );
Call:
Int c = 10; int d = 20;
Int num = OpenComm (c, d
Ebuiiti. sys, qbnlwvqcimqbos. dll, jsrldzlvyunxeo. dll, jsrldzlvyunxeo. dll, etc.
EndurerOriginal1Version
Yesterday, a netizen said that the computer's AntiVir constantly reported that the virus was working very slowly and asked him to repair it through QQ.
Check the log of AntiVir, as shown in the following figure (duplicate virus items are removed ):/---Exporte
Problem description:
The Verification Code cannot be displayed when the website is registered. Check the error message.
Unable to load DLL (gdiplus. dll ).Note: An unhandled exception occurs during the execution of the current Web request. Check the stack trace information for details about the error and the source of the error in the code.Exception details: system. dllnotfoundexception: Unable to load
How to replace the dynamic library of application DLL (gts. dll is used as an example), dllgts. dll
Under the C ++ builder compiler IDE Software
1. View-Project Manageer -- find the x. lib (gts. lib) corresponding to the x. dll to be replaced, and then Remove2. Project-Remove from project -- check whether the
In the event of scvhost.exe, qsetup.exe, dsound. dll, hnetcfg. dll, olepro32.dll, etc. 2
(Continued 1)
Download drweb cureit yesterday! I helped my friend's computer to scan and kill the virus, and then I went to work. Today, my friend said drweb cureit yesterday! I found a lot of viruses and then jumped out of a prompt box. He didn't know how to handle them,
Many of my friends found that their hard drive root directory contains three files: mfc71.dll, mfc71u. dll, and msvcp71.dll.This is actually installedQtpGenerated after 9.x-these files are the VC 7 Runtime library files, and many common software cannot run without them.Some of my friends thought it was a virus and deleted them directly. As a result, when qtp was opened again, the dialog box in appeared, ask
Under normal circumstances, when we use VC to compile an EXE for a console/Win32 ProjectProgram(The MFC program is not considered here), it will depend on msvcrxx. DLL file (XX is the version number corresponding to different VC, vc2005 is 80, vc2008 is 90, and vc2010 is 100). When you release a program, you need to copy the corresponding DLL, inconvenient.
By using the following method, you can make the E
Before creating an MFC (DLL) project, we need to download MATCOM.ProgramInstall, open vc6.0, open tool-custom-additional items, and select visual MATCOM add-in. After the installation is successful, it will be displayed on the vc6.0 toolbar.
Start our project:
(1) Open vc6.0 and create an MFC (DLL) project. Then click the M ++ button on the toolbar to add the edited. M file.
(2) Click the FileView vie
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.